package io;

import java.io.File;
import java.util.Arrays;

public class IODemo5 {
    public static void main(String[] args) {
        File file = new File(".");

        String[] files = file.list();
        System.out.println(Arrays.toString(files));

        File[] files1 = file.listFiles();
        System.out.println(Arrays.toString(files1));
    }
}
